<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../../../common/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<sfa:mainTitle></sfa:mainTitle>
		<%@ include file="../../../common/meta.jsp"%>
		<script type="text/javascript"
			src="../../../script/lhgdialog/lhgdialog.min.js">
		<script type="text/javascript" language="Javascript"
			src="../../../script/FusionCharts/FusionCharts.js">
</script>
		<script type="text/javascript">
$(function() {
	fixTable.FixTable("mytable");
	$("#fullScreen").click(function() {
		fullScreen.FullScreen("mylist");
	});
})
function doQuery() {
	document.form1.action = "${path}/report/base/index/agentubrokerchart";
	document.form1.submit();
}
$(function(){
	$(".tr_chart").click(function(){
		$.dialog( {
				lock : true,
				background : '#FFF',
				opacity : 0.5,
				max : false,
				min : false,
				width : '750px',
				height : '320px',
				content : 'url:${path}/report/base/index/testchart'
			});
	});
});
function doExport(type) {
	document.form1.action = "${path}/report/base/index/getagentubrokerchart?type="+type;
	document.form1.submit();
}
</script>
	</head>
	<body id="master">
		<sfa:mainHeader></sfa:mainHeader>
		<form action="" name="form1" method="post">
			<div class="webpart3 contentarea">
				<div class="webpart-head">
					<div class="webpart-head-item">
						营业部月预收入分级进度
						<div class="tools-btn" style="width: 250px;">
							<a href="####" onclick="doExport('pdf')"><span> <img
										src="${path}/statics/images/dcpdf.gif"
										style="margin-right: 4px; margin-bottom: -3px;" />导出PDF</span> </a>
							<a href="####" onclick="doExport('excel')"><span> <img
										src="${path}/statics/images/dcexcel.gif"
										style="margin-right: 4px; margin-bottom: -3px;" />导出EXCEL</span> </a>
							<a href="####" id="fullScreen"><span> <img
										src="${path}/statics/images/qp.gif"
										style="margin-right: 4px; margin-bottom: -3px;" />全屏</span> </a>
						</div>
					</div>
				</div>


				<div class="webpart-main">
					<div class="webpart-main-item" style="padding-top: 12px;">
						<div class="search">
							<table width="100%" border="0" cellspacing="0" cellpadding="10"
								class="table_form">
								<tbody>
									<tr>
										<td align="right">
											统计时间：
										</td>
										<td>
											<input type="text" readonly="readonly" id="reportdate"
												name="reportdate" value="${reportdate}" class="input-txt"
												onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" />
										</td>
										<td align="right">
												<input name="Input" type="button" class="linkbtn2" value="查  询"
											onclick="doQuery()" /> 
										</td>
								</tbody>
							</table>
						</div>
						<!-- 查詢列表 -->
						<div id="mylist" style="height: 365px;" class="dlist">
							<table id="mytable" cellpadding="0" cellspacing="0"
								class="dg_borderstyle  trStyleTable"
								style="margin-top: 0px; text-align: center;">
									<tr>
										<th style="min-width: 30px; max-width: 30px;" name="fixcol">
											序号
										</th>
										<th align="center" style="min-width: 80px; max-width: 80px;">
											分公司代码
										</th>
										<th align="center" style="min-width: 100px; max-width: 100px;">
											分公司
										</th>
										<th align="center" style="min-width: 80px; max-width: 80px;">
											督导区代码
										</th>
										<th align="center" style="min-width: 100px; max-width: 100px;">
											督导区
										</th>
										<th align="center" style="min-width: 60px;">
											合计
										</th>
										<th align="center" style="min-width: 60px;">
											超级
										</th>
										<th align="center" style="min-width: 60px;">
											A
										</th>
										<th align="center" style="min-width: 60px;">
											B
										</th>
										<th align="center" style="min-width: 60px;">
											C
										</th>
										<th align="center" style="min-width: 60px;">
											D
										</th>
										<th align="center" style="min-width: 60px;">
											E
										</th>
										<th align="center" style="min-width: 60px;">
											小于3万
										</th>
									</tr>
									<c:forEach items="${pagination}" var="list">
										<tr class="tr_chart">
											<td>
												${list.col40}
											</td>
											<td>
												${list.branchcode}
											</td>
											<td>
												${list.branchname}
											</td>
											<td>
												${list.ubranchcode}
											</td>
											<td>
												${list.ubranchname}
											</td>
											<td>
												${list.col1}
											</td>
											<td>
												${list.col2}
											</td>
											<td>
												${list.col3}
											</td>
											<td>
												${list.col4}
											</td>
											<td>
												${list.col5}
											</td>
											<td>
												${list.col6}
											</td>
											<td>
												${list.col7}
											</td>
											<td>
												${list.col8}
											</td>
										</tr>
									</c:forEach>
							</table>
						</div>
						<p>
							<h4>
								<font color="red">营业部月预收入分级进度统计表说明</font>
							</h4>
							<br />
							<font color="#848484" size="2">统计口径:<br />
								1.超级:>=50万/月&nbsp;&nbsp;A:>=20万/月&nbsp;&nbsp;B:>=15万/月&nbsp;&nbsp;C:>=10万/月&nbsp;&nbsp;D:>=5万/月&nbsp;&nbsp;E:>=3万/月<br />
								2.表格数据每日凌晨3点更新<br /> </font>

						</p>
					</div>
				</div>
				<div class="webpart-foot">
						<div class="webpart-foot-item">
						</div>
					</div>
				</div>
						
		</form>
		<sfa:mainFooter></sfa:mainFooter>
		</div>
	</body>
</html>